@import url(../normalize.css);
@import url(../css/reset.css);

@rootSize: 37.5rem;
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding: 0 (15 / @rootSize);
  background-color: #f9f9f9;
}

li {
  list-style: none;
}

/* 头部样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 (15 / @rootSize);
  height: (46 / @rootSize);
  background-color: #fff;
  a {
    margin-bottom: 0;
    font-size: 12px;
    color: #333;
    text-decoration: none;
  }
  .left {
    width: (20 / @rootSize);
    height: (20 / @rootSize);
    background-image: url(../icons/header_news.png);
    background-size: cover;
  }
  .cennter {
    display: flex;
    position: relative;
    flex: 1;
    height: (32 / @rootSize);
    margin: 0 (26 / @rootSize);
    span {
      position: absolute;
      left: (16 / @rootSize);
      top: (10 / @rootSize);
    }
  }
  input {
    flex: 1;
    height: (32 / @rootSize);

    border-radius: (23 / @rootSize);
    border: 0;
    background-color: #f7f7f7;
    padding-left: (38 / @rootSize);
  }
}

/* content样式 */
.content {
  margin-bottom: (50 / @rootSize);
  margin-top: (60 / @rootSize);
}

/* pic样式 */
.pic {
  margin: (10 / @rootSize) 0;
  .photo {
    width: 100%;
    height: (129 / @rootSize);
    background-image: url(../imgs/banner.png);
    background-size: cover;
  }
  ul {
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin-top: (8 / @rootSize);
    li {
      list-style: none;
      a {
        display: block;
        width: (8 / @rootSize);
        height: (3 / @rootSize);
        background-color: #dedede;
        margin-right: (8 / @rootSize);
        transition: all 0.3s;
        &:hover {
          background-color: #333;
        }
      }
    }
  }
}

/* sort样式 */
.sort {
  ul {
    display: flex;
    padding-left: 0;
    li {
      flex: 1;
      &:first-child a {
        margin-right: (10 / @rootSize);
        background-image: url(../icons/nav_2.png);
        background-size: cover;
      }
      &:last-child a {
        background-image: url(../icons/nav_1.png);
        background-size: cover;
      }
      a {
        display: block;
        height: (70 / @rootSize);
      }
    }
  }
}

/* title样式 */
.title {
  margin-top: (36 / @rootSize);
  h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    margin-bottom: (22 / @rootSize);
    img {
      width: (7 / @rootSize);
    }
  }

  ul {
    display: flex;
    li {
      flex: 1;
      &:first-child {
        margin-right: (10 / @rootSize);
      }
      a {
        .pic1 {
          height: (114 / @rootSize);
          background-image: url(../imgs/content_tu_home_left@2x.png);
          background-size: cover;
        }
        .pic2 {
          height: (114 / @rootSize);
          background-image: url(../imgs/content_tu_home_right@2x.png);
          background-size: cover;
        }
        h4 {
          font-size: 13px;
          margin: (12 / @rootSize) 0 0 0;
          color: #333;
          font-weight: 600;
        }
        span {
          font-size: 11px;
          color: #999;
          margin-bottom: (12 / @rootSize);
        }
        i {
          color: #f39800;
          font-size: 11px;
        }
      }
    }
  }
}

/* ads样式 */
.ads {
  height: (56 / @rootSize);
  background-image: url(../imgs/ggwei_home.png);
  background-size: cover;
  margin: (30 / @rootSize) 0 (36 / @rootSize) 0;
}

/* recommend样式 */
.recommend {
  h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    margin-bottom: (22 / @rootSize);

    a {
      font-size: 14px;
      color: #999;
      &:hover {
        color: #333;
        border-bottom: 3px sol #0c9dec;
      }
    }
  }

  ul {
    li {
      margin-bottom: (18 / @rootSize);
      a {
        display: flex;
        .left {
          width: (109 / @rootSize);
          height: (100 / @rootSize);
          margin-right: (16 / @rootSize);
        }
        .right {
          flex: 1;
          display: flex;
          flex-direction: column;
          h4 {
            font-size: 13px;
            color: #333;
            font-weight: 600;
          }
          span {
            font-size: 11px;
            color: #999;
            margin: (8 / @rootSize) 0;
          }
          strong {
            color: #f39800;
            font-size: 13px;
          }
          p {
            width: (230 / @rootSize);
            font-size: 11px;
            color: #999;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
          }
          i {
            display: inline-block;
            width: (45 / @rootSize);
            height: (16 / @rootSize);
            border: 1px solid #999;
            text-align: center;
            line-height: (16 / @rootSize);
            margin-right: (10 / @rootSize);
          }
        }
      }
      .left1 {
        background-image: url(../imgs/content_tu_home_left@2x.png);
        background-size: cover;
      }
      .left2 {
        background-image: url(../imgs/content_tu_home_right@2x.png);
        background-size: cover;
      }
      .left3 {
        background-image: url(../imgs/home_list_tu3@2x.png);
        background-size: cover;
      }
      .left4 {
        background-image: url(../imgs/home_list_tu4@2x.png);
        background-size: cover;
      }
      .left5 {
        background-image: url(../imgs/home_list_tu5@2x.png);
        background-size: cover;
      }
    }
  }
}

/* more样式 */
.more {
  display: flex;
  justify-content: center;
  align-items: center;
  height: (66 / @rootSize);
  margin-bottom: (24 / @rootSize);
  button {
    width: (260 / @rootSize);
    height: (38 / @rootSize);
    background-color: #f2f2f3;
    font-size: 12px;
    color: #9c9c9c;
    text-align: center;
    line-height: (38 / @rootSize);
    border: 0;
    border-radius: (19 / @rootSize);
  }
}

/* photo样式 */
a {
  margin-bottom: (12 / @rootSize);
}
.photo {
  height: (85 / @rootSize);
  background-image: url(../imgs/gushirukou_home.png);
  background-size: cover;
}

/* footer样式 */
.footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  ul {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: (50 / @rootSize);
    background-color: #fff;
    li {
      &:hover a {
        color: #616161;
      }
    }
    a {
      height: (50 / @rootSize);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      font-size: 12px;
      margin-bottom: 0;
      color: #c7c7c7;
    }
  }
}
